/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.z100h.supplychain.purchase.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.core.persistence.DataEntity;

/**
 * 供应链采购单Entity
 * @author madara
 * @version 2018-09-20
 */
public class PurchaseOrder extends DataEntity<PurchaseOrder> {

	private static final long serialVersionUID = 1L;

	private String supplierId; // 供应商id

	private String contractId; // 合同id

	private String deliveryDate; // 交货日期

	private String isTax; // 是否含税

	private String tax; // 税点

	private String invoiceType; // 发票类型

	private String definitionId; // 流程定义id

	private String instanceId; // 流程实例id

	private Integer state; // 状态

	private String evidenceId;

	private String totalPlant;// 植物数量

	private String totalPrice;// 采购总价

	private String supplierName;// 供应商名称

	private String contractName;// 合同名称

	private String contractNo;// 合同编号

	private String type;

	// 采购日期
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date purchaseDate;

	private Date finishTime;

	public String getTotalPlant() {
		return totalPlant;
	}

	public void setTotalPlant(String totalPlant) {
		this.totalPlant = totalPlant;
	}

	public String getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(String totalPrice) {
		this.totalPrice = totalPrice;
	}

	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

	public String getContractName() {
		return contractName;
	}

	public void setContractName(String contractName) {
		this.contractName = contractName;
	}

	public String getContractNo() {
		return contractNo;
	}

	public void setContractNo(String contractNo) {
		this.contractNo = contractNo;
	}

	public PurchaseOrder() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}

	public String getEvidenceId() {
		return evidenceId;
	}

	public void setEvidenceId(String evidenceId) {
		this.evidenceId = evidenceId;
	}

	public PurchaseOrder(String id) {
		super(id);
	}

	@Override
	@ExcelField(title = "公司id", align = 2, sort = 7)
	public String getCompanyId() {
		return companyId;
	}

	@Override
	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	@Override
	@ExcelField(title = "部门id", align = 2, sort = 8)
	public String getDepartmentId() {
		return departmentId;
	}

	@Override
	public void setDepartmentId(String departmentId) {
		this.departmentId = departmentId;
	}

	@Override
	@ExcelField(title = "职位id", align = 2, sort = 9)
	public String getStationId() {
		return stationId;
	}

	@Override
	public void setStationId(String stationId) {
		this.stationId = stationId;
	}

	@ExcelField(title = "供应商id", align = 2, sort = 10)
	public String getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(String supplierId) {
		this.supplierId = supplierId;
	}

	@ExcelField(title = "合同id", align = 2, sort = 11)
	public String getContractId() {
		return contractId;
	}

	public void setContractId(String contractId) {
		this.contractId = contractId;
	}

	@ExcelField(title = "交货日期", align = 2, sort = 12)
	public String getDeliveryDate() {
		return deliveryDate;
	}

	public void setDeliveryDate(String deliveryDate) {
		this.deliveryDate = deliveryDate;
	}

	@ExcelField(title = "是否含税", align = 2, sort = 13)
	public String getIsTax() {
		return isTax;
	}

	public void setIsTax(String isTax) {
		this.isTax = isTax;
	}

	@ExcelField(title = "税点", align = 2, sort = 14)
	public String getTax() {
		return tax;
	}

	public void setTax(String tax) {
		this.tax = tax;
	}

	@ExcelField(title = "发票类型", align = 2, sort = 15)
	public String getInvoiceType() {
		return invoiceType;
	}

	public void setInvoiceType(String invoiceType) {
		this.invoiceType = invoiceType;
	}

	@ExcelField(title = "流程定义id", align = 2, sort = 16)
	public String getDefinitionId() {
		return definitionId;
	}

	public void setDefinitionId(String definitionId) {
		this.definitionId = definitionId;
	}

	@ExcelField(title = "流程实例id", align = 2, sort = 17)
	public String getInstanceId() {
		return instanceId;
	}

	public void setInstanceId(String instanceId) {
		this.instanceId = instanceId;
	}

	@ExcelField(title = "状态", align = 2, sort = 18)
	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	@ExcelField(title = "采购日期", align = 2, sort = 19)
	public Date getPurchaseDate() {
		return purchaseDate;
	}

	public void setPurchaseDate(Date purchaseDate) {
		this.purchaseDate = purchaseDate;
	}

	public Date getFinishTime() {
		return finishTime;
	}

	public void setFinishTime(Date finishTime) {
		this.finishTime = finishTime;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
}